Gissio / radpro

Custom firmware for Geiger counters/radiation meters (FS2011, Bosean FS-600, FS-1000, FS-5000, FNIRSI GC-01)
MIT License
162 stars 20 forks source link

Rad Pro: JSON API #10

Closed murkle closed 10 months ago

murkle commented 10 months ago

It would be quite handy (and more robust for knowing which bit of info has been returned) if there was an API call like GET allInfo which could return something like

{"tubePulseCount": 35, "deviceId": "Bosean FS-1000;Rad Pro 2.0beta9;1414549528", "deviceTemperature": 16.6, "deviceTime": 1699699817, "tubeTime": 446, "tubeRate": 4.518, "tubeDutyCycle": 0.500,"tubeConversionFactor": 68.400,"tubeDeadTime": 0.0006695,"tubeDeadTimeCompensation": 0.0000000,"entropy": "8f46"}

also "deviceId": "Bosean FS-1000;Rad Pro 2.0beta9;1414549528" could be split as eg

"deviceName": "Bosean FS-1000", deviceSoftware:"Rad Pro 2.0beta9", "deviceId":"414549528

Gissio commented 10 months ago

I try to keep the API as simple as possible. I don't think doing what you suggest is a good idea.