Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,19 +46,19 @@ def simulate_pole(pole_id, site_name):
|
|
46 |
|
47 |
return {
|
48 |
'Pole ID': f'{site_name[:3].upper()}-{pole_id:03}',
|
49 |
-
'Site':
|
50 |
-
'Latitude':
|
51 |
-
'Longitude':
|
52 |
'Solar (kWh)': solar_kwh,
|
53 |
'Wind (kWh)': wind_kwh,
|
54 |
-
'Power Required (kWh)':
|
55 |
'Total Power (kWh)': total_power,
|
56 |
'Power Status': power_status,
|
57 |
'Tilt Angle (°)': tilt_angle,
|
58 |
'Vibration (g)': vibration,
|
59 |
-
'Camera Status':
|
60 |
-
'Health Score':
|
61 |
-
'Alert Level':
|
62 |
'Anomalies': "; ".join(anomaly_details),
|
63 |
'Last Checked': timestamp.strftime('%Y-%m-%d %H:%M:%S')
|
64 |
}
|
|
|
46 |
|
47 |
return {
|
48 |
'Pole ID': f'{site_name[:3].upper()}-{pole_id:03}',
|
49 |
+
'Site': Site__c,
|
50 |
+
'Latitude': Location_Latitude__c,
|
51 |
+
'Longitude': Location_Longitude__c,
|
52 |
'Solar (kWh)': solar_kwh,
|
53 |
'Wind (kWh)': wind_kwh,
|
54 |
+
'Power Required (kWh)': Power_Required__c,
|
55 |
'Total Power (kWh)': total_power,
|
56 |
'Power Status': power_status,
|
57 |
'Tilt Angle (°)': tilt_angle,
|
58 |
'Vibration (g)': vibration,
|
59 |
+
'Camera Status': Camera_Status__c,
|
60 |
+
'Health Score': Health_Score__c,
|
61 |
+
'Alert Level': Alert_Level__c,
|
62 |
'Anomalies': "; ".join(anomaly_details),
|
63 |
'Last Checked': timestamp.strftime('%Y-%m-%d %H:%M:%S')
|
64 |
}
|