Sanjayraju30 commited on
Commit
cdd127e
·
verified ·
1 Parent(s): 4038c08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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': site_name,
50
- 'Latitude': lat,
51
- 'Longitude': lon,
52
  'Solar (kWh)': solar_kwh,
53
  'Wind (kWh)': wind_kwh,
54
- 'Power Required (kWh)': power_required,
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,
60
- 'Health Score': round(health_score, 2),
61
- 'Alert Level': 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
  }