VOLTTRON / volttron-pnnl-applications

New repository for PNNL developed VOLTTRON applications
BSD 3-Clause "New" or "Revised" License
10 stars 9 forks source link

Web app for ILC config - True booleans versus true #39

Closed bbartling closed 2 years ago

bbartling commented 2 years ago

When I made the ILC config file with the web app, I notice that the Boolean data comes through as true not True. Is that because the web app is maybe JavaScript and the VOLTTRON is Python where true is throwing an error on my end.

{"config": {"type":"json","data": {"campus":"slipstream_internal","building":"slipstream_hq","power_meter": {"device_topic":" slipstream_internal/slipstream_hq/5232", "device_name":"5232","point":"REGVAL total_rtu_power", "demand_formula":{"operation":"REGVAL total_rtu_power / 1000", "operation_args":["REGVAL total_rtu_power"]}}, "agent_id":"Cal", "demand_limit":"10", "control_time":5, "curtailment_break":9, "average_building_power_window":10, "stagger_release":true, "stagger_off_time":true,

craig8 commented 2 years ago

this is json data. json doesn't have a True operator which is why you got the error. true is the syntax available for json, which is obviously the conclusion you got to.