Skip to content
/ mowas Public

fetch mowas messages from json-source and prepare them for dapnet

Notifications You must be signed in to change notification settings

do6uk/mowas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

MoWaS

what it does

The mowas.php reads MoWaS-messages from the json-source @ bbk and prepares the messages for DAPNET-transmission:

  • prepend a regional code (from sender-field)
  • insert a 'E:' for 'Entwarnung oder 'W:' for 'Warnung' before message-headline
  • replace 'Umlaute' in message
  • shorten the message to 78 chars and add '..' to mark shorten messages
  • add ' #' to mark messages that have less 79 chars and are complete

examples

MV-SN W:Korrektur - Internetadressen des Landesamtes fuer Gesundheit und Sozia..

NW-VIE E:Sirenenprobe #

see it in live-demo

https://db0usd.ralsu.de/mowas.php

what to know about it

This script does not contain any DAPNET-connectivity. You have to add DAPNET-rubric-submission-code to this script or you have to include the code in your existing DAPNET-scripts.

Feel free to use the code. If you like it, send me a message ;-)

73 de do6uk Rainer

About

fetch mowas messages from json-source and prepare them for dapnet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages