Code Monkey home page Code Monkey logo

storq2-rds's Introduction

STORQ2-RDS

Collection of scripts to parse output of STORQ2 radio automation log, update RDS, create logs & charts.

This is a collection of scripts for parsing the output of the STORQ2 radio automation system messy logs and export clean song titles and specialty programming to RDS displays. Additional scripts will clean up the data and create monthly song charts.

RDSupdate.sh - Parses the output of the final line of the STORQ2 'asplayed' log, cleans it up, and directs output to text file for RDS to pick up. An "archive" version is also saved in a daily log file.

endofday.sh - Scans the daily log file for any items that accidentally got logged twice in a row, and cleans those up before archiving the final playlist in the logs subfolder.

endofmonth.sh - When run with a 2 digit numerical argument (eh "./endofmonth.sh 05"), will create a song chart from all the archived logs from that month (05 is May, 06 in June, etc).

Scheduling The RDS update script - which used to run via crontab every minute - now runs as a systemd service. The bash script now runs every 20 seconds in a loop rather than needing to be called via cron.

Edit the RDS.service script with the path to your "RDSupdate.sh" script. Copy it to /etc/systemd/system/RDS.service. Then run: sudo systemctl daemon-reload sudo systemctl start RDS sudo systemctl enable RDS

Crontab scheduling of "end of day" script: The end of day script only runs once per day, which is fine to schedule via crontab.
crontab -e 59 23 * * * endofday.sh

storq2-rds's People

Contributors

adamssecretcode avatar

Watchers

 avatar

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.