npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@motolaps/motobox

v1.1.24

Published

raspy: sudo raspi-config change locale de_DE utf8 timezone europe berlin expand filesystem

Downloads

25

Readme

NPM version Build Status Dependency Status Coverage percentage

motolaps-motobox

Description

Installation

raspy: sudo raspi-config change locale de_DE utf8 timezone europe berlin expand filesystem

Zu installieren (Bei Raspbian Buster):

sudo apt-get update && sudo apt-get upgrade

sudo apt-get install -y ufw git

# nodejs
# curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install nodejs

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
source ~/.profile

sudo apt-get install -y libudev-dev libusb-dev libusb-1.0-0 libusb-1.0-0-dev
sudo apt install pigpio

####################################
# TO INSTALL NPM PACKAGES
# sudo chmod 775 /usr/bin/node
# TO USE GPIOs 
# sudo chmod u+s /usr/bin/node
####################################

# sudo chown pi:pi -R /usr/lib/node_modules
sudo chown -R pi:pi /home/pi/.npm*
sudo chmod 777 -R /var/log/

# sudo chown -R pi:pi /root/.npm
# sudo chmod -R 777 /root/.npm
# sudo chown -R pi:pi /usr/lib/node_modules
# sudo chmod -R 775 /usr/lib/node_modules

#npm install -g gulp-cli
npm install -g @dotup/dotup-ts-mqtt-cli --unsave-perm
npm install -g @dotup/node-ssdp-cli --unsave-perm
npm install -g @dotup/node-app-installer --unsave-perm

npm install -g @dotup/node-mifare-usb --unsave-perm
npm install -g @dotup/raspberrypi-gpio --unsave-perm
# sudo chmod u+s /usr/bin/node

sudo dd of=/etc/udev/rules.d/10-card.rules << EOF
SUBSYSTEM=="usb", ATTR{idVendor}=="ffff", ATTR{idProduct}=="35", GROUP="users" MODE="0666"
SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="03", MODE="0666"
KERNEL=="hiddev*", ATTRS{idVendor}=="ffff", MODE="0666"
EOF

sudo chmod 0666 /dev/hidraw*
sudo udevadm control --reload-rules

#  TO UPDATE PACKAGES !!!
##
# npm install --prefix ~/moto/motobox/ @motolaps/motobox
##


# Als service
#noin -u dotupNET -r dotup-ts-node-ipc-server
npm install -g @dotup/node-ipc-server
cd ~/.npm-global/lib/node_modules/@dotup/node-ipc-server
nosi

# Als app
#noin -u dotupNET -r motolaps-motobox-codereader-terminal
npm install -g @motolaps/motobox-codereader-terminal

# Als Service
#noin -u dotupNET -r motolaps-motobox-codereader-usb
npm install -g @motolaps/motobox-codereader-usb
cd ~/.npm-global/lib/node_modules/@motolaps/motobox-codereader-usb
nosi

# Als service
#noin -u dotupNET -r motolaps-motobox-simulator
npm install -g @motolaps/motobox-simulator
cd ~/.npm-global/lib/node_modules/@motolaps/motobox-simulator
nosi

#npm install -g @motolaps/motobox-simulator
# Als Service
#noin -u dotupNET -r motolaps-motobox
npm install -g @motolaps/motobox
cd ~/.npm-global/lib/node_modules/@motolaps/motobox
nosi

Link zur config datei damit von home "nano motobox.config.json" möglich ist

cd ln -s .npm-global/lib/node_modules/@motolaps/motobox/dist/assets/motobox.config.json motobox.config.json


Hyper: apt-get install hyperv-daemons


#############################################################

Boot to terminal:

https://stackoverflow.com/questions/30044035/starting-node-app-at-startup-on-raspberry-pi

https://raspberrypi.stackexchange.com/questions/34060/raspberry-pi-autostart-terminal-running-nodejs-for-lxde-environment/34061

https://ubuntu-mate.community/t/solved-boot-raspberry-pi-2-image-directly-to-terminal-console/1569/3

https://www.raspberrypi-spy.co.uk/2014/05/how-to-autostart-apps-in-rasbian-lxde-desktop/

#############################################################

Firewall:

RDP 3389/tcp

Bonjour 5353/udp

SSDP 1900/udp

Node Remote debug 9229/tcp

sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw allow ssh sudo ufw allow 1900/udp sudo ufw allow 1883/tcp sudo ufw allow 3389/tcp sudo ufw allow 9229/udp sudo ufw enable

#############################################################

Device discovery service:

Status anzeigen: systemctl status motoboard.service

Neustart: systemctl restart motoboard

Logs anzeigen: sudo journalctl --follow -u motoboard.service

Deinstallieren: sudo systemctl stop [servicename] sudo systemctl disable [servicename] rm /etc/systemd/system/[servicename] sudo systemctl daemon-reload sudo systemctl reset-failed

systemd service: After=network-online.target Wants=network-online.target

#############################################################

GPIO Access:

https://www.raspberrypi.org/forums/viewtopic.php?f=117&t=208748

https://www.raspberrypi.org/forums/viewtopic.php?t=5185#p161013

Configuration

Usage

Release Notes

1.0.0

Fixes/Features:

  • Initial release

License

MIT © Peter Ullrich

Enjoy!