A Forum run by Enthusiasts of MidNite Solar

MidNite Solar Monitoring software and hardware => Local App software => Topic started by: Resthome on June 04, 2015, 07:38:13 PM

Title: Flash Error in Local App
Post by: Resthome on June 04, 2015, 07:38:13 PM
Now here is a new one that just occurred. Okay, Andrew any clues.

Title: Re: Flash Error in Local App
Post by: Westbranch on June 04, 2015, 08:26:34 PM
RH   Google this:  json parse error [syntax error].

It appears JSON is a tool to check for bad code  see: http://jsonlint.com/

so the syntax error shows it (JSON)  is working...
Title: Re: Flash Error in Local App
Post by: Resthome on June 04, 2015, 09:13:13 PM
Quote from: Westbranch on June 04, 2015, 08:26:34 PM
RH   Google this:  json parse error [syntax error].

It appears JSON is a tool to check for bad code  see: http://jsonlint.com/

so the syntax error shows it (JSON)  is working...

Thanks Westbranch

it appears to be corrupt data files that the LA stores on the PC in %appsdata%. There were a few files that were 0 bytes. Not sure why that is happening. I guess I will run some disk diagnostics to see if maybe there are some bad spots on the HD. Fairly new laptop but who knows. Since these database file are not readable it hard to tell what is suppose to be in them or the logic behind the file names.
Title: Re: Flash Error in Local App
Post by: atop8918 on June 05, 2015, 01:17:17 AM
That error is coming from the 3rd party charting library that the app uses. It usually indicates that the data file is missing or corrupt. The files in the Local Store directory are database files. They are not human readable and were not intended to be. That is why there is an export function in the app: to convert the files into a human-readable format. The logic behind the files is as follows:
- the numbered directories are the decimal equivalents of the Hexadecimal Device ID for all units detected by the Local App. Simply put the number into your favorite calculator program in "programmer" mode and switch it to hex and you should now be able to see which device each directory refers to.
- within each directory there is a .man manifest file which contains arrays of manifests which comprise date and time information, registers polled, polling frequency, and a pointer into the data files which contain the actual data
- the data files have a .xxxx extension where xxxx refers to the modbus register polled. They contain arrays of data values in binary form.
All files are EMCA-based objects and contain EMCA types and coded values.
Title: Re: Flash Error in Local App
Post by: atop8918 on June 05, 2015, 01:19:52 AM
JSON is a human-readable data format that is widely used on the web and for exchanging certain types of data to disk. It stands for JavaScript Object Notation.

http://json.org/

It is an EMCA-recognized and now officiated standard.
Title: Re: Flash Error in Local App
Post by: dgd on June 05, 2015, 04:10:41 AM
or...
Quote
JSON, or JavaScript Object Notation, is a minimal, readable format for structuring data. It is used primarily to transmit data between a server and web application, as an alternative to XML.

..sort or ironic the 'readable' part when the LA's data and its format stored on the users computer are certainly not 'readable' by any stretch of it's meaning

sorry, couldn't resist  ;)

dgd
Title: Re: Flash Error in Local App
Post by: atop8918 on June 05, 2015, 08:35:15 AM
Not really that ironic as no computer program has any "human readable" parts while operating, unless you are good at reading machine code?

I could store it as human-readable text but if you guys think the local app has poor performance now...

The export button is there to convert from the binary format the computer uses to "human-readable". If you want human readable, hit the export button. Would you also ask Microsoft for their interim data files to be stored in human readable text? Have you ever opened a .doc file without a word processor? Man, tough crowd...
Title: Re: Flash Error in Local App
Post by: Westbranch on June 05, 2015, 06:57:47 PM
Hey, It's FRIDAY.... also grouch day!  >:( :( :o

;)
Title: Re: Flash Error in Local App
Post by: atop8918 on June 07, 2015, 02:28:15 PM
Sorry! I should have saved that one for "hump day"

Casual sarcasm doesn't transmit well over modern written media. I apologize for sounding harsh where I meant to be tongue-in cheek. My cheek, so don't get any ideas.
Title: Re: Flash Error in Local App
Post by: Westbranch on June 07, 2015, 03:35:54 PM
No problem, I got the poke and had to poke back ;) ;) ... too easy a target... ::) :o

This issue is minor to my dealings with my Netbook this week, it has locked up and I finally stumble onto RAMDISK program and now it is back to an acceptable  workable state, but something fill ed up my HD, but I did a backup that was supposed to be on a different partition, now to figure out what it is really...

cheers
Eric
Title: Re: Flash Error in Local App
Post by: atop8918 on June 07, 2015, 04:05:58 PM
I got my first taste of computers around age 6, my first home computer at 8. I've been tinkering and programming them for over 30 years since then. After all that time the only thing I have to say is: "I hate computers"
Title: Re: Flash Error in Local App
Post by: Resthome on June 07, 2015, 11:22:09 PM
Quote from: Westbranch on June 07, 2015, 03:35:54 PM
No problem, I got the poke and had to poke back ;) ;) ... too easy a target... ::) :o

This issue is minor to my dealings with my Netbook this week, it has locked up and I finally stumble onto RAMDISK program and now it is back to an acceptable  workable state, but something fill ed up my HD, but I did a backup that was supposed to be on a different partition, now to figure out what it is really...

cheers
Eric

Eric

A different partition is still on the same HD. So it will fill up a single HD on a notebook. So you are still limited to the size of the HD. Randisk uses you computer main memory thus the name RAM.

Title: Re: Flash Error in Local App
Post by: Westbranch on June 07, 2015, 11:51:08 PM
Hi John,  the 2 drives are shown separately when I use Disk-defrag. C and D, and C filled up to almost 50% from about 1/2 that, even though it listed the target as D, which is 95% empty. So the back up really did go to the C partition?? I have been loading new versions of  aftermarket programs and sending them to D.... D also ahs a hidden file for an F9 re-install as this Netbook does not have a CD reader.

AS to the Ram Disk program, I have it pointed to drive F a 32Gb SD card, and did it ever speed things up..

Title: Re: Flash Error in Local App
Post by: Resthome on June 08, 2015, 12:05:00 AM
Each partition has a different drive letter but still the same physical HD.
Title: Re: Flash Error in Local App
Post by: Westbranch on June 08, 2015, 12:21:48 AM
right, problem was why did it use some of the C partition when it said D ??? I usually use an external Terabyte drive for that use but it was not handy.... duh...

I am going to re load W7 when I get home and have my list of all PWs etc handy
Title: Re: Flash Error in Local App
Post by: Resthome on June 08, 2015, 12:36:55 AM
We're you using the window backup program or something else?
Title: Re: Flash Error in Local App
Post by: Westbranch on June 08, 2015, 08:38:30 PM
yes Windows backup... and I have to do a recovery every time I startup the PC... as of last night... the cause seems to be. my attempt to get rid of that W10 icon in my  active tray, because  I found thhat  this PC can NOT run W10 as it does not have a compatible cpu
Title: Re: Flash Error in Local App
Post by: Westbranch on June 14, 2015, 11:41:24 PM
RH,   DGD and ZoneBlue may have hit on something over in this thread

http://midnitesolar.com/Forum/index.php?topic=2521.msg24163;topicseen#new

starts in the middle of post #5

Title: Re: Flash Error in Local App
Post by: Resthome on June 15, 2015, 12:46:20 AM
Yeah I think DGD uses the serial port and Zoneblue use the Ethernet to read data for their apps.