Ok first of thanks to everyone that's contributed with code on both this and Photovoltaikform.
I've had my CCA now running without cloud connection for nearly a month now (firmware 3.6.7), I have 14 panels nicely displayed in the summary page with the calendar fully working, also I've written an index.html page showing current panel power outputs in watts and each panel changing colour with % output. All the basic coding is available on the German forum.
However what I quickly noticed was the system was getting bogged down with high cpu activity due to compression - Bzip2 in the main
Although this didn't seam to effect my html page operation and summary it was slowing refreshing and opening of status to the point it was almost unusable, also CPU was running quite hot.
I think I've now sorted this and everything is running snappy with CPU usage in the 8-20% region.
First of i'm old school from the times of basic- machine code and pascal and although I can program in C Linux is new to me so please bare with me.
I've fitted a 32Gb USB flash drive, formatted, mounted and moved daqs, daqs_avg and netrouting to this drive.
This has now freed up the internal nand and seams to have stopped compression from running all the time. Also this massive storage should holds years of data.
First insert you USB flash and find it - /dev/sda1
Format-
make a new directory, my one -
Bash:
/mnt/ffs/bin # mkdir USB1
mount drive-
Code:
mount /dev/sda1 /mnt/ffs/bin/USB1
copy over as required -
Bash:
cp-r /mnt/ffs/data/daqs /mnt/ffs/bin/Usb1
Check your data has copied over ok
Then delete the old copy in /data
Next add a symlink to /data
Bash:
ln -s /mnt/ffs/bin/Usb1/daqs /mnt/ffs/data
You will find this should all run well and top will show a reduction of cpu load etc.
Finally you will need to add mount to the crontab otherwise once you reboot the USB drive will not be mounted.
I have done this with a one line script and a crontab pointed to it
/mnt/ffs/etc/Usb1_mount
Bash:
#!/bin/sh
# mount sda1 (usb drive to Usb1)
mount /dev/sda1 /mnt/ffs/bin/Usb1
crontab-
@reboot sleep 15 && /mnt/ffs/etc/Usb1_mount
There are other changes you will need to run your CCA offline like giving access to a local NTP server for time sync, don't forget you will be be voiding your warrantee. I have logged all my changes so that I can always reverse and changes I've made although going back and allowing Tigo access always comes with the risk of new firmware updates etc.