I was originally thinking something like this (dropdown boxes - click to view detail)
System description
This could be a brief overview of the users system, kept updated by the user in the "bio" section of the user page maybe?
System information
Emoncms | Version | low-write 9.8.18 | 2017.11.20 |
| Modules | Administration | App v1.0.0 | Backup v1.0.0 | EmonHub Config v1.0.0 | Dashboard v1.1.1 | EventProcesses | Feed | Graph v1.0.0 | hub | Input | postprocess | CoreProcess | Schedule | setup | Time | User | Visualisation | WiFi v1.0.0 |
| Buffer | loading... |
| Writer | Daemon is running with sleep 60s |
Server | OS | Linux 4.4.26-v7+ |
| Host | emonpi emonpi (127.0.1.1) |
| Date | 2018-01-17 19:46:00 UTC |
| Uptime | 19:46:00 up 9:35, 0 users, load average: 0.17, 0.17, 0.20 |
HTTP | Server | Apache/2.4.10 (Raspbian) HTTP/1.1 CGI/1.1 80 |
MySQL | Version | 5.5.52-0+deb8u1 |
| Host | localhost (127.0.0.1) |
| Date | 2018-01-17 19:46:00 (UTC 00:00) |
| Stats | Uptime: 4667322 Threads: 1 Questions: 216 Slow queries: 0 Opens: 75 Flush tables: 1 Open tables: 68 Queries per second avg: 0.000 |
Redis | Version | 2.8.17 |
| Host | localhost:6379 (127.0.0.1) |
| Size | 110 keys (528.98K)Flush |
| Uptime | 0 days |
MQTT | Version | 1.4.10 |
| Host | localhost:1883 (127.0.0.1) |
Pi | CPU Temp | 35.78°CShutdownReboot |
| Release | emonSD-07Nov16 |
| File-system | Set root file-system temporarily to read-write, (default read-only)Read-Write Read-Only |
Memory | RAM | Total: 973.11 MB Used: 281.03 MB Free: 692.08 MB |
Disk | Mount | Stats |
| / | Total: 3.33 GB Used: 2.04 GB Free: 1.13 GB |
| /boot | Total: 59.95 MB Used: 20.83 MB Free: 39.12 MB |
| /home/pi/data | Total: 193.66 MB Used: 108.77 MB Free: 74.9 MB |
PHP | Version | 5.6.30-0+deb8u1 (Zend Version 2.6.0) |
| Modules | apache2handler | bcmath | bz2 | calendar | Core v5.6.30-0+deb8u1 | ctype | curl | date v5.6.30-0+deb8u1 | dba | dio v0.0.4RC4 | dom v20031129 | ereg | exif v1.4 | fileinfo v1.0.5 | filter v0.11.0 | ftp | gd | gettext | hash v1.0 | iconv | json v1.3.6 | libxml | mbstring | mcrypt | mhash | mosquitto v0.3.0 | mysql v1.0 | mysqli v0.1 | openssl | pcre | PDO v1.0.4dev | pdo_mysql v1.0.2 | Phar v2.0.2 | posix | readline v5.6.30-0+deb8u1 | redis v2.2.8 | Reflection | session | shmop | SimpleXML v0.1 | soap | sockets | SPL v0.2 | standard v5.6.30-0+deb8u1 | sysvmsg | sysvsem | sysvshm | tokenizer v0.1 | wddx | xml | xmlreader v0.1 | xmlwriter v0.1 | Zend OPcache v7.0.6-devFE | zip v1.12.5 | zlib v2.0 | |
emonCMS logfile
2018-01-17 19:43:39.024|INFO|feed_model.php|insert_data() feedid=3 updatetime=1516218218 feedtime=1516218218 value=0 arg=
2018-01-17 19:43:39.028|INFO|phpmqtt_input.php|emon/gasMon/uptime 3578948112
2018-01-17 19:43:39.037|INFO|phpmqtt_input.php|emon/gasMon/rssi -82
2018-01-17 19:43:40.199|INFO|phpmqtt_input.php|emon/emonth2/temperature 16.7
2018-01-17 19:43:40.211|INFO|phpmqtt_input.php|emon/emonth2/external temperature 0
2018-01-17 19:43:40.221|INFO|phpmqtt_input.php|emon/emonth2/humidity 45.7
2018-01-17 19:43:40.261|INFO|phpmqtt_input.php|emon/emonth2/battery 2.1
2018-01-17 19:43:40.271|INFO|phpmqtt_input.php|emon/emonth2/rssi -28
2018-01-17 19:43:41.169|INFO|index.php|admin/view
2018-01-17 19:43:41.632|INFO|phpmqtt_input.php|emon/emonpi/1 0
2018-01-17 19:43:41.652|INFO|phpmqtt_input.php|emon/emonpi/2 0
2018-01-17 19:43:41.678|INFO|phpmqtt_input.php|emon/emonpi/3 0
2018-01-17 19:43:41.695|INFO|phpmqtt_input.php|emon/emonpi/4 0
2018-01-17 19:43:41.689|INFO|index.php|feed/list.json
2018-01-17 19:43:41.781|INFO|phpmqtt_input.php|emon/emonpi/5 0
2018-01-17 19:43:41.799|INFO|phpmqtt_input.php|emon/emonpi/6 0
2018-01-17 19:43:41.813|INFO|phpmqtt_input.php|emon/emonpi/7 0
2018-01-17 19:43:41.825|INFO|phpmqtt_input.php|emon/emonpi/8 0
2018-01-17 19:43:41.837|INFO|phpmqtt_input.php|emon/emonpi/9 0
2018-01-17 19:43:41.850|INFO|phpmqtt_input.php|emon/emonpi/10 0
2018-01-17 19:43:41.864|INFO|phpmqtt_input.php|emon/emonpi/11 0
2018-01-17 19:43:41.901|INFO|phpmqtt_input.php|emon/emonpi/rssi 0
2018-01-17 19:43:42.090|INFO|index.php|feed/buffersize.json
2018-01-17 19:43:42.123|INFO|feed_model.php|EngineClass() Autoloaded new instance of 'RedisBuffer'.
2018-01-17 19:43:42.102|INFO|index.php|admin/getlog
emonHUB logfile
2018-01-17 20:03:08,926 INFO RFM2Pi Publishing: emon/emonpi/2 0
2018-01-17 20:03:08,928 INFO RFM2Pi Publishing: emon/emonpi/3 0
2018-01-17 20:03:08,930 INFO RFM2Pi Publishing: emon/emonpi/4 0
2018-01-17 20:03:08,931 INFO RFM2Pi Publishing: emon/emonpi/5 0
2018-01-17 20:03:08,934 INFO RFM2Pi Publishing: emon/emonpi/6 0
2018-01-17 20:03:08,936 INFO RFM2Pi Publishing: emon/emonpi/7 0
2018-01-17 20:03:08,937 INFO RFM2Pi Publishing: emon/emonpi/8 0
2018-01-17 20:03:08,939 INFO RFM2Pi Publishing: emon/emonpi/9 0
2018-01-17 20:03:08,941 INFO RFM2Pi Publishing: emon/emonpi/10 0
2018-01-17 20:03:08,943 INFO RFM2Pi Publishing: emon/emonpi/11 0
2018-01-17 20:03:08,945 INFO RFM2Pi Publishing: emon/emonpi/rssi 0
2018-01-17 20:03:08,947 INFO RFM2Pi Publishing: emonhub/rx/5/values 0,0,0,0,0,0,0,0,0,0,0
2018-01-17 20:03:08,948 INFO RFM2Pi Publishing: emonhub/rx/5/rssi 0
2018-01-17 20:03:08,951 DEBUG RFM2Pi 21589 adding frame to buffer => [1516219388.916353, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2018-01-17 20:03:08,952 DEBUG RFM2Pi 21589 adding frame to buffer => [1516219388.916353, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2018-01-17 20:03:08,953 DEBUG RFM2Pi 21589 Sent to channel(end)' : ToEmonCMS
2018-01-17 20:03:09,058 DEBUG RFM2Pi 21590 NEW FRAME : OK 30 104 8 0 0 96 68 100 213 (-78)
2018-01-17 20:03:09,061 DEBUG RFM2Pi 21590 Timestamp : 1516219389.06
2018-01-17 20:03:09,063 DEBUG RFM2Pi 21590 From Node : 30
2018-01-17 20:03:09,064 DEBUG RFM2Pi 21590 Values : [21.52, 3580118112L]
2018-01-17 20:03:09,066 DEBUG RFM2Pi 21590 RSSI : -78
2018-01-17 20:03:09,067 DEBUG RFM2Pi 21590 Sent to channel(start)' : ToEmonCMS
2018-01-17 20:03:09,068 INFO RFM2Pi Publishing: emon/gasMon/pulsecount 21.52
2018-01-17 20:03:09,071 INFO RFM2Pi Publishing: emon/gasMon/uptime 3580118112
2018-01-17 20:03:09,074 INFO RFM2Pi Publishing: emon/gasMon/rssi -78
2018-01-17 20:03:09,076 INFO RFM2Pi Publishing: emonhub/rx/30/values 21.52,3580118112
2018-01-17 20:03:09,079 INFO RFM2Pi Publishing: emonhub/rx/30/rssi -78
2018-01-17 20:03:09,081 DEBUG RFM2Pi 21590 adding frame to buffer => [1516219389.058307, 30, 21.52, 3580118112L, -78]
2018-01-17 20:03:09,083 DEBUG RFM2Pi 21590 adding frame to buffer => [1516219389.058307, 30, 21.52, 3580118112L, -78]
2018-01-17 20:03:09,084 DEBUG RFM2Pi 21590 Sent to channel(end)' : ToEmonCMS
would look tidy, avoid ridiculously long posts (2 or 3 users post a “info dump” on one thread and it will take for ever to scroll through). The system info section could reuse the same html used on the admin page rather than duplication the existing code and having to edit or add new snippets in 2 locations etc, easy maintenance.
Initially I thought of using a markdown table but that’s not possible with the “|” separators. this version is pure html.
IMO the logfiles would also need to be longer than is currently exposed on the emoncms pages, perhaps copied direct from the filesystem so they should be relatively limited by logrotate? On that note, the logrotating needs to be relaxed or skipped on the emonhub.logs, 2hrs of log is useless most of the time, so that forces users to have to sit and watch for the next fault occurance. emonhub has it’s own rotation in built, the filesize could be adjusted (currently 5mb). What is the post size limit here on the forum?
I see the appeal of this, but for me it’s a hurdle that sometimes put’s me off assisting straight away. Certainly if I visit the forum on my mobile and I see a post with logs attached (not in line) or zipped, I will not proceed any further until I’m in front of a PC/laptop (often the next day or later), I don’t want my mobile full of other users logs, besides the text files are less easy on the eye than code blocks. I don’t know if you have noticed but often when I do open an attached or zipped log file, I then edit the users post to include the logs in in-line code blocks so that I can delete them from my PC (before I forget) and continue perusal or even return to view them later on my mobile if further examination is required. Perhaps limit the logfile size to 1mb each in the “info dump” and have an option to attach the “full logs” (incl rotated) in a zip if more indepth debugging is required?
What would also be very useful for debugging is a “print process lists” type button (or api?), a text based printout would be a smaller filesize than screen dumps, tidier and more importantly, editable. When suggesting a correction we could copy/paste and edit a copy of the original “processlist dump” rather than completely rewriting it from a screen dump or trying to explain the changes to be made.