Municipal power generating device outside high-rise building

The invention provides a municipal power generating device outside a high-rise building. The municipal power generating device mainly comprises a drainage pipeline, a hydraulic cylinder, a solar panel, power generators and flow regulating valves. The wastewater drainage feature of the high-rise building is mainly used for generating power. The power generators are installed in the drainage pipeline and wastewater from top to bottom is directly used for generating power. Meanwhile, a piston rod in the hydraulic cylinder is pushed by the wastewater in the drainage pipeline to move upwards, the solar panel is pushed by the piston rod to follow the sunshine to rotate, and power is generated to the maximum degree. Currently, energy conservation and emission reduction are strongly advocated, and it is necessary and significant that original waste water resources are used for serving people again.