Git Product home page Git Product logo

piclodio3's Introduction

Hello there, I'm Nicolas 👋

Welcome to my GitHub profile !

I'm currently an SRE engineer at Hewlett Packard Enterprise and based in Grenoble, France. I do love automating ALL the things 🚀!

Python Django Ansible Ubuntu Docker github actions git gitkraken github openshift Kubernetes VScode PyCharm

About me

  • 👷🏻 SRE engineer
  • 🐍Python lover
  • 🤝Open source evangelist
  • 🐧Linux addict
  • 🤓 Geek

GitHub stats

GitHub Streak Ale's Github Stats

Top languages

Ale's Top languages

Quotes

Happiness is not something ready made. It comes from your own actions - Dalai Lama XIV

piclodio3's People

Contributors

angular-cli avatar dependabot[bot] avatar ramonakira avatar sispheor 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  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  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  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  avatar  avatar  avatar  avatar

piclodio3's Issues

Upgrade nodejs version + angular

Hello

I tried to install Piclodio3 on Raspbian with a recent version of nodejs, but I have some issues on dependances. I tried to downgrade nodejs to 6.1 as requierement ask to, but now angular CLI ask for nodejs >= 10.13.

So is there a way to upgrade nodejs requiered version in Piclodio3 to match current nodejs version?

Regards.

rpi date wrong

Hello

The rpi date is wrong on my piclodio webpage. Piclodio display the UTC time and not the local time of my PI3

Where to setup usb audio

Hi Nicolas,

First, thank you for this excellent piece of software.
I want to move from default raspberry sound card, because the sound is awful most of the time. (tons of noise and saturation). I bought and setup an usb audio card. So I have alsa and a usb sound card correctly setup.

speaker-test -c2

Works perfectly well and sending a sound in command line too.
The problem is that picolodio is looking like this now:

par defaut 2017-07-07 a 21 02 33

Can you tell me where i can explain to piclodio which sound card to use?

Thanks

Create and open a Systemd service file for Gunicorn

Thanks for creating this, its just what I'm looking for.
I'm following the instructions to setup the backend on a fresh Raspbian Jessie build

I've created the gunicorn.service file in /etc/systemd/system/ and used the exact code in the instructions.

Running "sudo systemctl start gunicorn" causes an error
"Failed to start gunicorn.service: Unit gunicorn.service failed to load: Invalid argument. See system logs and 'systemctl status gunicorn.service' for details."

/var/log/sys shows
[/etc/systemd/system/gunicorn.service:9] Executable path is not absolute, ignoring: gunicorn --bind 0.0.0.0:8000 piclodio3.wsgi:application

gunicorn.service lacks both ExecStart= and ExecStop= setting. Refusing.

Unable to find mixer control PCM

Running latest Raspbian Desktop on a Pi4 with docker-compose.
I want to play sound though the headphone jacks, but it does not work.

When accessing the Settings page, it looks as reported by #32 and the backend logs show:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/django/views/generic/base.py", line 71, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 505, in dispatch
response = self.handle_exception(exc)
File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 465, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
raise exc
File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 502, in dispatch
response = handler(request, *args, **kwargs)
File "/code/restapi/views/volume_views.py", line 23, in get
volume = Volume()
File "/code/restapi/models/volume.py", line 7, in init
self.volume = SoundManager.get_volume()
File "/code/utils/sound_manager.py", line 22, in get_volume
vol = cls._get_mixer().getvolume()
File "/code/utils/sound_manager.py", line 13, in _get_mixer
mixer = alsaaudio.Mixer("PCM")
alsaaudio.ALSAAudioError: Unable to find mixer control PCM,0 [default]

amixer on the pi gives me:

Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 1 [0%] [on]
Front Right: Playback 1 [0%] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 65536
Front Left: Capture 65536 [100%] [on]
Front Right: Capture 65536 [100%] [on]

I opened a shell inside of the backend container and verified /dev/snd/ is present.
I installed amixer in the container, and it gave me

Simple mixer control 'HDMI',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback -10239 - 400
Mono: Playback 0 [96%] [0.00dB] [on]

I already ran amixer cset numid=3 1
Audio from desktop applications works fine.

I only found this related thread.

sudo: docker-compose : command not found

(i am french)
when I put this command "docker-compose up -d" to the installation
he puts me "Permission not granted"
so I tested "sudo docker-compose up -d" and this time if I have "sudo: docker-compose: command not found"
please help me

volume

image
is this normal and in case I have already tested "amixer cset numid=3 1"

launch error

Hi
First install (using your install modop)
My config : Linux XPi 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux
but

sudo docker-compose up -d
WARNING: The PWD variable is not set. Defaulting to a blank string.
piclodio3_backend_1 is up-to-date
Starting piclodio3_frontend_1 ...
Starting piclodio3_frontend_1 ... error

ERROR: for piclodio3_frontend_1 Cannot start service frontend: driver failed programming external connectivity on endpoint piclodio3_frontend_1 (dcaee570d8bdd443ee38b8daae61b76026e4775068b1abadd691f8d6f7580ac7): Bind for 0.0.0.0:80 failed: port is already allocated

ERROR: for frontend Cannot start service frontend: driver failed programming external connectivity on endpoint piclodio3_frontend_1 (dcaee570d8bdd443ee38b8daae61b76026e4775068b1abadd691f8d6f7580ac7): Bind for 0.0.0.0:80 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.

Sound to bluetooth

Hi everyone,

I do not manage to set the output sound to any bluetooth speaker... Any hint ?

Update to Stretch

Hello

i do an update to stretch and the alarms not work now .

Have you an idea ?

Erreur sur interface web

Bonjour,
J'ai des erreur sur l'interface web pour ajouter des radios, crée des réveil.

Create new web radio webradio-form.component.ts:55:14
Object { name: "Rock", url: "http://hd.lagrosseradio.info/lagrosseradio-rock-192.mp3", is_default: false }
webradio-form.component.ts:56:14
Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://192.168.1.32:8000/api/webradios/. Raison : échec de la requête CORS.

Error [object Object] webradio-form.component.ts:63:18
Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://192.168.1.32:8000/api/alarmclocks/. Raison : échec de la requête CORS.

ERROR 
Object { headers: {…}, status: 0, statusText: "Unknown Error", url: "http://192.168.1.32:8000/api/alarmclocks/", ok: false, name: "HttpErrorResponse", message: "Http failure response for http://192.168.1.32:8000/api/alarmclocks/: 0 Unknown Error", error: error }
core.js:5882:19
Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://192.168.1.32:8000/api/volume/. Raison : échec de la requête CORS.

Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://192.168.1.32:8000/api/backup/. Raison : échec de la requête CORS.

ERROR 
Object { headers: {…}, status: 0, statusText: "Unknown Error", url: "http://192.168.1.32:8000/api/volume/", ok: false, name: "HttpErrorResponse", message: "Http failure response for http://192.168.1.32:8000/api/volume/: 0 Unknown Error", error: error }
core.js:5882:19
ERROR 
Object { headers: {…}, status: 0, statusText: "Unknown Error", url: "http://192.168.1.32:8000/api/backup/", ok: false, name: "HttpErrorResponse", message: "Http failure response for http://192.168.1.32:8000/api/backup/: 0 Unknown Error", error: error }
core.js:5882:19

Incremente volume by 1%

Hello
It is possible to Incremente volume by 1% or 0.5% ? i can't find this on the code to modify the frontend
Thanks

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.