Smart railway station with automatic level cross; railway station that generates electricity