Hi brownrb, I have a question for you, I seen in the firmware that you use a lot of time String expecially where JSON string is builded, there's a reason why you choose this way?
Did you consider to use ArduinoJson library? this can help to avoid floating exception and ram fragmentation
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Am already using the ArduinoJson library - so not sure why you mentioned that.
Very briefly, and I do not intend to take long on this,
Ram fragmentation is not an issue here, because the strings are not global and are local only, and created on the called functions stack, so there is no need for the code to allocate more when a + command for the string is executed. When the function exits, the code simply pops off the stack and returns to the calling function. This means there is no fragmentation taking place.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I asked you cause I got a problem with static gps and looking in the json answer construction I've seen you don't give to arduino library the variable but you build the string by your self, and for this I was courios.
"lat":00 00 00 N,"lon":000 00 00 W,
should be
"lat":"00 00 00 N","lon":"000 00 00 W",
because the coordinates are strings containing digits AND hemisphere information (W and N)
But of course there is another issue in that the coordinates should be replaced by the static ones.
That all changes in the new firmware coming. All those things move to the file system, where you can change all of those details on the fly without having to change the firmware and then reprogram the controller. That is only one change of many.
There are issues with the current implementation on Sourceforge. Put simply - there are a few bugs. This has been literally replaced with new code.
FYI I have been on a coding binge over the last week - well into the night and early morning each day on this project., sometimes 12-16 hrs on the stretch. But I see daylight coming very soon.
What I can tell you is that new Firmware is coming very soon v124-0 as well as new apps etc, and I would think that will go a long way to fixing that and other issues.
Last edit: brownrb 2021-10-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
no problem, I understand you, I do the same but for automation software...the time is too short when we are coding :) no problem i fix it by myself in the code, I don't need the gps cause i know where I'm
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
from feedback, a lot of users like to post to things like weather underground or on the Internet as part of thier observatory page, and a lot seem to use mySQMWEB on a Pi to do this. Having the ability to hide real locations or even use static ones is high on the list of "please implement".
Cheers
Robert
(back to more coding)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
in my case I have already a pc 24h on, in my observatory, I'm making a python script to get weather data and send to a laravel based api in my hosting, and showing data via nuxt app.. I'll have a big headhake in the end but is just for learning
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi brownrb, I have a question for you, I seen in the firmware that you use a lot of time String expecially where JSON string is builded, there's a reason why you choose this way?
Did you consider to use ArduinoJson library? this can help to avoid floating exception and ram fragmentation
Thanks
Am already using the ArduinoJson library - so not sure why you mentioned that.
Very briefly, and I do not intend to take long on this,
Ram fragmentation is not an issue here, because the strings are not global and are local only, and created on the called functions stack, so there is no need for the code to allocate more when a + command for the string is executed. When the function exits, the code simply pops off the stack and returns to the calling function. This means there is no fragmentation taking place.
I asked you cause I got a problem with static gps and looking in the json answer construction I've seen you don't give to arduino library the variable but you build the string by your self, and for this I was courios.
Anyway I have a problem with gpsstatic:
The sqm+ reply
my config is this:
so this should be true:
But When I parse the json coming from esp I get error on:
"lat":00 00 00 N,"lon":000 00 00 W,
invalid number
What I'm missing??
Hi Stefano
To your query
"lat":00 00 00 N,"lon":000 00 00 W,
should be
"lat":"00 00 00 N","lon":"000 00 00 W",
because the coordinates are strings containing digits AND hemisphere information (W and N)
But of course there is another issue in that the coordinates should be replaced by the static ones.
That all changes in the new firmware coming. All those things move to the file system, where you can change all of those details on the fly without having to change the firmware and then reprogram the controller. That is only one change of many.
There are issues with the current implementation on Sourceforge. Put simply - there are a few bugs. This has been literally replaced with new code.
FYI I have been on a coding binge over the last week - well into the night and early morning each day on this project., sometimes 12-16 hrs on the stretch. But I see daylight coming very soon.
What I can tell you is that new Firmware is coming very soon v124-0 as well as new apps etc, and I would think that will go a long way to fixing that and other issues.
Last edit: brownrb 2021-10-17
no problem, I understand you, I do the same but for automation software...the time is too short when we are coding :) no problem i fix it by myself in the code, I don't need the gps cause i know where I'm
Ok. Appreciate the question.
from feedback, a lot of users like to post to things like weather underground or on the Internet as part of thier observatory page, and a lot seem to use mySQMWEB on a Pi to do this. Having the ability to hide real locations or even use static ones is high on the list of "please implement".
Cheers
Robert
(back to more coding)
in my case I have already a pc 24h on, in my observatory, I'm making a python script to get weather data and send to a laravel based api in my hosting, and showing data via nuxt app.. I'll have a big headhake in the end but is just for learning