Code Monkey home page Code Monkey logo

autowx's People

Contributors

cyber-atomus avatar rhaamo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

autowx's Issues

Feature: Static web pages generation

Hi,

The refactoring was made to add some others features I wanted.
I started working on static web pages generation, it's pretty simple, I don't wanted something really complicated.

The process is plugged as:

  • after each wxtoimg (and wxmap thingy) two thumbnails of specific size are created, the filename is the same but prefixed with ".thumb_" or ".thumb_sm_"
  • after the pass a record is added to a CSV file
  • then after that, the current pass generate a "single pass" page, and cycle over the CSV file to create the index and index_X.html pages

The templates use jinja2, no pull request yet I want to look if it's stable enought.
Thumbnails use a dot-prefixed filename to not clog the output of the real-size generated files.
Since I still don't have METEOR working it's not handled at all (the csv and generation are triggered only if matching NOAA).
You can take a look of the code in the "static-web" branch of my fork, and I have my autowx running and generating stuff at https://noaa.lan.sigpipe.me/ (the link may broke for a few days maybe when I will rework my network at home).

I want to get METEOR working to add support to it, it would be better.
Right now it's seems to be pretty ok, I think I will look at the "overlay map direction" to improve the rotation (upside down or not) in the single pass page, and look to make all links "relatives" and not prefixed by "/" every time (anyway the maps directory and img ones needs a virtualhost configuration, or, needs an autowx config to generate them in sub directories in the "web" one).
I don't think I added an option to disable thumbnails generation, only web, I will add one to disable thumbs if wanted and if web not activated.

I choosed CSV because I wanted to just add simple content in it for generate the "pagination":

sat_name,automate_started,aos_time,los_time,max_elev,record_time
NOAA 18,1503425958.639888,1503428523,1503429459,47,936.0
NOAA 19,1503435618.841656,1503461286,1503462231,87,945.0
NOAA 15,1503466282.538971,1503468267,1503469146,34,879.0

A sqlite3 database could have also been used, with more informations to do the web pages generation better (like be able to regenerate all single_pass pages), I don't know.

Let me know what you think about that.

alternative to "wine+lrpt offline decoder" combo; and cpu load question.

Sugestion:
It is pretty fresh project:
https://github.com/artlav/meteor_decoder
(with some precompiled binaries: http://orbides.org/page.php?id=1023)
Try it instead of "wine+lrpt offline decoder" combo.
I will try to feed above decoder with output generated by metor_qspk.py but there comes the question.

Question:
meteor_qpsk.py is very heavy on cpu, my raspberry pi3 is loaded on all cores to 100%,
(I was experimenting with gui version: https://www.dropbox.com/s/8kc89wriludrrb8/meteor_qpsk_rx_rtl.zip
and cpu load was not that heavy) should it look like that?

Edit: https://wiki.gnuradio.org/index.php/Guided_Tutorial_GRC - copy&pasting missing lines with "blocks_throttle" from gui version at the moment...
Edit2: copypasta failed, meddling around rational_resampler_xxx_0 atm.
Edit3: Following didn't work as expected, script is somehow running, but still max load:

127,128c127
<         self.blocks_throttle_0 = blocks.throttle(gr.sizeof_gr_complex*1, samp_rate,True)
<       self.blocks_float_to_char_0 = blocks.float_to_char(1, 127)
---
>         self.blocks_float_to_char_0 = blocks.float_to_char(1, 127)
144c143
<         ########self.connect((self.rational_resampler_xxx_0, 0), (self.analog_agc_xx_0, 0))
---
>         self.connect((self.rational_resampler_xxx_0, 0), (self.analog_agc_xx_0, 0))
146d144
<       self.connect((self.blocks_throttle_0, 0), (self.analog_agc_xx_0, 0))
148c146
<       self.connect((self.rational_resampler_xxx_0, 0), (self.blocks_throttle_0, 0))
---
>
180d177
<       self.blocks_throttle_0.set_sample_rate(self.samp_rate)

noaa.py looking for directories that aren't there

Directories /opt/wxsat and /opt/wxsat/logs aren't being created. Furthermore, users don't have write privileges for /opt. Why not automatically create these directories in autowx and kill two birds with one stone?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.