Skip to content

Instantly share code, notes, and snippets.

View magdesign's full-sized avatar
💭
slow to respond, since I am cycling...

magdesign magdesign

💭
slow to respond, since I am cycling...
View GitHub Profile
Since there is a massive DMX lag, here some approaches to fix it:
*****************************************************************
There is a discussion on this thread:
https://github.com/OpenLightingProject/ola/issues/1677
Latency testing see here:
https://github.com/lemariva/rPI-Tests
1.Use a realtime kernel and do some tests:
@magdesign
magdesign / Olad_Service
Last active November 2, 2020 23:02
sudo nano /etc/systemd/system/olad.service
[Unit]
Description=OLA Daemon
After=network.target
[Service]
User=olad
ExecStart=/usr/local/bin/olad
Restart=always
OLA Show
1 253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,99,105,4,4,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12,253,255,12,12
@magdesign
magdesign / make check error
Created November 5, 2020 17:36
make check error of ola https://github.com/shenghaoyang/ola mitigate-drift branch
In file included from ./plugins/artnet/ArtNetNode.h:37:0,
from plugins/artnet/ArtNetNodeTest.cpp:45:
./include/ola/rdm/QueueingRDMController.h:68:10: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<RDMCallback> m_callback;
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/cppunit/extensions/HelperMacros.h:16,
from plugins/artnet/ArtNetNodeTest.cpp:22:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
mv -f olad/plugin_api/.deps/olad_plugin_api_UniverseTester-UniverseTest.Tpo olad/plugin_api/.deps/olad_plugin_api_UniverseTester-UniverseTest.Po
/bin/bash ./libtool --tag=CXX --mode=link g++ -I./include -I./include -Wall -Wformat -W -fvisibility-inlines-hidden -pthread -DTEST_SRC_DIR=\".\" -DTEST_BUILD_DIR=\".\" -Werror -Wno-error=deprecated-declarations -g -O2 -std=gnu++11 -pthread -o olad/plugin_api/UniverseTester olad/plugin_api/olad_plugin_api_UniverseTester-UniverseTest.o -lcppunit common/testing/libolatesting.la common/testing/libtestmain.la common/libolacommon.la -lprotobuf -pthread -lpthread olad/plugin_api/libolaserverplugininterface.la common/libolacommon.la -ldns_sd -ldl
libtool: link: g++ -I./include -I./include -Wall -Wformat -W -fvisibility-inlines-hidden -pthread -DTEST_SRC_DIR=\".\" -DTEST_BUILD_DIR=\".\" -Werror -Wno-error=deprecated-declarations -g -O2 -std=gnu++11 -pthread -o olad/plugin_api/.libs/UniverseTester olad/plugin_api/olad_plugin_api_UniverseTester-UniverseTest.o -
/* this reads out the number in a file (data.txt) and prints it */
static final String FILE_NAME = "/home/magdesign/Desktop/data.txt";
int[] data;
void setup() {
String[] txtFile = loadStrings(FILE_NAME);
data = new int[txtFile.length];
for (int i = 0; i != data.length; println())
/* this is a countdown which takes its time from an input file
but it does not work yet....scratching my head... how the hell could
I make a valueinput when starting the compiled processing programm,
would love to launch with a flag containing the seconds like: sketch_contdown02 -300
*/
///load time from a file, decalred as data
int[] timer;
@magdesign
magdesign / Processing_Countdown
Created November 30, 2020 10:45
Countdown which triggers scrit at 0
/*countdown, t- from data.txt file,
when finished trigger a trigger.sh (make sure to declare exact path when compiling)
and destroy itself
2020*/
///load time from a file, decalred as data ( you don't need an array, as there is just one value to pick )
int timer;
/// declare the String Array to store the data from the txt file
String[] txtFile;
@magdesign
magdesign / osmin
Created April 8, 2022 14:39
build osmin on pinephone
[magdesign@manjaro-arm osmin]$ cmake -B build -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ .
-- Found Qt5 version 5.15.3
-- Downloading marisa
-- Configuring done
-- Generating done
-- Build files have been written to: /home/magdesign/Downloads/osmin/build/backend/marisa-download
[100%] Built target marisa-download
-- Build MARISA: /home/magdesign/Downloads/osmin/build/backend/marisa-build
-- SSE test compilation fails
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
@magdesign
magdesign / pinephonepro
Last active July 13, 2022 14:58
Pinephonepro to do on fresh install
new and updated version of this is here: https://codeberg.org/magdesign/Pinephone_Things2doAfterInstall/src/branch/main/README.md
things to do after fresh install of an os:
sudo nano /etc/fstab add noatime
# update system
sudo pacman -Syyu
# install pamac