GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - thinrope/fixed_sensor_visualization: A (web-based) visualization for fixed sensor (radiation) data

BranchesTags
Open more actions menu

Latest commit

 

History

181 Commits
181 Commits

Folders and files

NameName
Last commit message
Last commit date
cache
cache
 
 
in
in
 
 
misc
misc
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
Makefile.config.EXAMPLE
Makefile.config.EXAMPLE
 
 
README.md
README.md
 
 
cacher.pl
cacher.pl
 
 
cyanhalo_lut_4xlog10.csv
cyanhalo_lut_4xlog10.csv
 
 
nodata.gpl
nodata.gpl
 
 
timeplot.gpl
timeplot.gpl
 
 
timeplot_all.gpl
timeplot_all.gpl
 
 
timeplot_daily.gpl
timeplot_daily.gpl
 
 

Repository files navigation

fixed_sensor_visualization

A (web-based) visualization for fixed sensor (radiation) data.

See full example at http://gamma.tar.bz/nGeigies/

A slightly modified version of this code is making the graphs on http://realtime.safecast.org/

Description

A collection of scripts and settings to visualize data from fixed sensors. Initial scope is limited to Safecast nGegie sensors - fixed radiation sensors.

Prerequisites

The following is my development environment, so it is (kind of) guaranteed to work in it.

  • A recent Linux distro (I use Gentoo)
  • GNU make {>=4.1}
  • GNUplot {>=5.0.3}
  • Perl {>=5.20.2}
    • DateTime::Format::ISO8601 {>=0.80.0}
  • pngcrush {>=1.7.81}
  • imagemagick {>=6.9.0.3}

I don't plan to release an ebuild (package) anytime soon, so to get all the deps on Gentoo, try

sudo emerge -avtuq sys-devel/make sci-visualization/gnuplot dev-lang/perl dev-perl/DateTime-Format-ISO8601 media-gfx/pngcrush media-gfx/imagemagick

Usage

Make sure you have EDITOR envvar defined (or simply edit Makefile.config with your favorite text editor)

cp -a Makefile.config{.EXAMPLE,} && ${EDITOR} Makefile.config
make view
make publish

Architecture

  • Local configuration (API endpoint, sensor IDs to plot, graphs color&size, etc.) is stored in Makefile.config, edit to suit your needs.

  • Four sub-directories are used/created:

    • in: some static input data like the main database (a CSV file), HTML templates, etc., updated from the repo when you do git pull
    • cache: dynamic data (each sensor readings, metadata, etc.), downloaded/refreshed and further processed (via make -> cacher.pl invocation)
    • tmp: temporary data (averaged readings, plot titles, etc.), produced via make -> gnuplot -> timeplot_all.gpl
    • out: final local mirror of what gets published to the server
  • The usual make publish workflow is as follows (see inside Makefile for other targets/details):

    • invoke cacher.pl to fetch data from https://api.safecast.org/ and produce smoothed data in cache
    • invoke gnuplot to execute timeplot.gpl and produce each individual sensor graphs (e.g. out/40.png and out/40_small.png) as well as data for all-sensor-graphs (inside tmp)
    • invoke gnuplot to execute timeplot_all and produce all-sensor-graphs (out/LIVE.png and out/TEST.png)
    • parse HTML templates to produce the final output out/index.html and out/TEST.html
    • publish the results on a server (see PUBLISH_CMD inside Makefile.conf)

About

A (web-based) visualization for fixed sensor (radiation) data

Topics

fixed-sensorsgnuplotradiationsafecastvisualization

Resources

Readme
GPL-2.0 license
Activity

Stars

4 stars

Watchers

2 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.