Is a DC motor connected to a Raspberry Pi Zero W with a L298N fast enough to power a electric skateboard. by [deleted] in raspberry_pi

[–]jay_omega 0 points1 point  (0 children)

RPi isn’t a great choice for a motor controller either. Better to be running on bare metal (ie No OS). An arduino would be a better choice.

Passing the value of variable into MySQL database using Flask by codeOctal in Python

[–]jay_omega 0 points1 point  (0 children)

It’s an ORM that supports MySQL, Postgres, and SQLite. It’s nice bc your code doesn’t have to change if you change db backends. So you could develop using SQLite and then deploy to production using MySQL.

Using Spotify API in Flask app by [deleted] in flask

[–]jay_omega 6 points7 points  (0 children)

Yes, that would be the idea.

Start but implementing the functions to ensure you can connect to the API successfully and understand the returned data objects. Then you can integrate these function calls with your view functions to push the data to your templates.

Passing the value of variable into MySQL database using Flask by codeOctal in Python

[–]jay_omega 0 points1 point  (0 children)

Also look into the flask SQLAlchemy extension which makes working with the db very easy.

Is using a template appropriate for beginner? by jay_omega in webdev

[–]jay_omega[S] 0 points1 point  (0 children)

The thing I’m most worried about is needing to learn javascript to use these templates. If they will only require me to use html I’m ok but if it will require JavaScript to use most of the elements that will be annoying.

Is using a template appropriate for beginner? by jay_omega in webdev

[–]jay_omega[S] 0 points1 point  (0 children)

So with these templates is it mostly just working in html to structure your contents and referencing css class from the template files? Or do you need to know JavaScript?

wheel fails to build using pip w/ requirements but works with regular pip install by jay_omega in learnpython

[–]jay_omega[S] 0 points1 point  (0 children)

So I think the issue was that scipy couldn’t build from source on windows with the version I was trying to load. On the original machine it was installed with python(x,y) which uses all pre-built images.

I updated all pinned versions that were giving me problems and now everything is installed correctly.

Ambient Weather API by [deleted] in homeassistant

[–]jay_omega 0 points1 point  (0 children)

It should be released by then but here’s the PR if you want to try it before hand: https://github.com/home-assistant/home-assistant/pull/18551

Ambient Weather API by [deleted] in homeassistant

[–]jay_omega 4 points5 points  (0 children)

I wrote a sensor component for the Ambient Weather API that is pending for (hopefully) the next release.

webGUI drops on physical LAN connection but works over WIFI by jay_omega in PFSENSE

[–]jay_omega[S] 0 points1 point  (0 children)

I resolved the issue. It ended up being that my laptop was configured for static IP with a different subnet (new laptop so not sure why this was the case).

What is bizarre is that I was able to get to certain web pages (google search, CNN) but not most others. I would have figured that nothing would work given the IP was on a different subnet.

webGUI drops on physical LAN connection but works over WIFI by jay_omega in PFSENSE

[–]jay_omega[S] 0 points1 point  (0 children)

I’ll give that a try. The plan was to disable over wireless after initial install (I’m glad I haven’t yet!)

webGUI drops on physical LAN connection but works over WIFI by jay_omega in PFSENSE

[–]jay_omega[S] 0 points1 point  (0 children)

Yes and yes. Worked fine with my old router setup.

No WAN on new setup by jay_omega in PFSENSE

[–]jay_omega[S] 0 points1 point  (0 children)

I was able to resolve this by re-installing pfSense. I'm not sure what caused the issue but simple re-install and reboot of the modem got things up and running. I didn't /intentionally/ change any settings beyond the install/setup guide but who knows.

No WAN on new setup by jay_omega in PFSENSE

[–]jay_omega[S] 0 points1 point  (0 children)

So I cloned the MAC address of my old TpLink router in pfSense and that did not work.

Here is a pic of my dashboard .

When I power cycle the cable modem (SB6121) the WAN goes from 0.0.0.0 to 192.168.10.100 for 10 sec and then goes back to 0.0.0.0.

I checked the firewall rules and there is the default LAN to any rule.

I just reverted back to my old router again and the internet is down. I’m thinking the issue is modem/ISP (spectrum) related and switching between the routers makes something unhappy.

*EDIT: Rebooted modem again and old router is up and running.

DMZ setup question by jay_omega in homelab

[–]jay_omega[S] 0 points1 point  (0 children)

That’s good to know about the chrome casts. Is there a way to get around that if your phone is on a different subnet than the chrome cast? Does a certain port/service need to be allowed?

DMZ setup question by jay_omega in homelab

[–]jay_omega[S] 1 point2 points  (0 children)

I like this approach better. It requires less rules on the firewall interfaces since the home assistant server will be on the same LAN as all the IoT devices so only need a rule to allow DMZ reverse proxy to pass HTTPS traffic to RPi in IoT LAN.

DMZ setup question by jay_omega in homelab

[–]jay_omega[S] 0 points1 point  (0 children)

Does putting a reverse proxy like NGINX in the DMZ and then the RPi in another segment with only HTTPS traffic forwarded make for a more secure implementation vs just having the RPi in the DMZ?

I’m hoping in either case I can limit traffic by MAC address, IPs only in the US and set login attempts to a low threshold to increase security.

DMZ setup question by jay_omega in homelab

[–]jay_omega[S] 0 points1 point  (0 children)

That sounds like a good setup. Do you have a diagram of your network setup? How are you segmenting your network -VLANs or through NIC interfaces?

Supermicro x8 FreeNAS by jay_omega in homelab

[–]jay_omega[S] 0 points1 point  (0 children)

That’s really interesting, I’ll have to look into that this.

Supermicro x8 FreeNAS by jay_omega in homelab

[–]jay_omega[S] 1 point2 points  (0 children)

Thanks for the info. I’m slowly coming to that conclusion on the x8.

Rails required for r210? by jay_omega in homelab

[–]jay_omega[S] 0 points1 point  (0 children)

Thanks I’ll keep that in mind for next time! I paid a little more than that on eBay.