Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Programming Languages - Let the Flame Wars Start!
Page 4 of 4 | |||||
Author | Message | ||||
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1676 |
I don't mind the external esp, that isn't a problem at all I've just been looking at the delux version you mentioned, but I don't need all the functionality as I won't be playing games Am I correct that if I had the Waveshare board and resistors,and connector vga would work? The resolution isn't a problem being so low, it's the aspect ratio I need 16:9 it will then work on any display that has that ratio |
||||
lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3013 |
This is excellent. Lew--you said you use the FIELD function for some json elements which you can't get JSON$ to work for. Can you post how you would attempt to extract them with JSON$ so Peter can make sure that they will work with his new CMM2 JSON$ code? PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1676 |
Not a problem {"status":{"status_code":0,"status_message":"SUCCESS"},"device_id":35102,"type":"obs_air","source":"cache","summary":{"pressure_trend":"steady","strike_count_1h":0,"strike_count_3h":0,"strike_last_dist":31,"strike_last_epoch":1608416353,"feels_like":1.0,"heat_index":4.5,"wind_chill":1.0},"obs":[[1612014425,985.9,4.5,63,0,0,3.06,1]]} it's only the section after OBS which I need, and I get this sucessfully with the Field$ command The same with this {"status":{"status_code":0,"status_message":"SUCCESS"},"device_id":35103,"type":"obs_sky","source":"cache","summary":{"precip_total_1h":0.0,"precip_accum_local_yesterday":0.474136,"precip_analysis_type_yesterday":0},"obs":[[1612014517,9518,0.44,0,3.98,6.09,8.18,77,3.49,1,79,0.057341,0,15,null,null,0]]} Peter when you parsed the data, how did you call it? did you use wget on the CMM or did you have to talk to the ESP with it's own language? |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 8578 |
I read it in from file. The CMM2 doesn't do things like wget. Can you post code that talks to a ESP to get the data and also confirm which ESP firmware version is installed |
||||
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1676 |
Esp firmware is annex rds basic and it's an esp32 and I'm getting the data from UDP packets at the moment I don't mind whatever firmware is installed on the ESP as long as I know the commands to get the data and put it into a file. it's probably easiest to stick with the ESP8266 for this. Is this the firmware that's in the CMMM2 at the moment, or a newer version? |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 8578 |
There is no firmware in the CMM2. It just talks to an ESP-01 over a serial ports. |
||||
hitsware2 Guru Joined: 03/08/2019 Location: United StatesPosts: 705 |
> There is no firmware in the CMM2. When MMBasic in the CMM2 is updated , isn ' t that " reflashing the firmware ? my site |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 8578 |
here is no relevant firmware in the CMM2. It just talks to an ESP-01 over a serial ports. Edited 2021-01-31 01:27 by matherp |
||||
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1676 |
I meant new version or existing version of CMM2 (i get firmware and software mixed up) Edited 2021-01-31 01:51 by lew247 |
||||
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 3655 |
The version with JSON$ is beta b11 John |
||||
MustardMan Senior Member Joined: 30/08/2019 Location: AustraliaPosts: 175 |
Getting back on track regarding programming languages, how about 'Rockstar'? See https://youtu.be/gdSlcxxYAA8 Although it is an hour long, the presenter keeps you interested the whole way! |
||||
hitsware2 Guru Joined: 03/08/2019 Location: United StatesPosts: 705 |
I like Ruby better . my site |
||||
Page 4 of 4 |
Print this page |