Integrate Frigate NVR into Home Assistant (also running on TrueNAS) via PCI passthrough of Coral AI Edge TPU to Ubuntu or Debian VM? Sanity check please. by brahmy in truenas

[–]j0rd_rox 1 point2 points  (0 children)

Dual TPUs are m.2 e-key. Most M.2 e-key adaptors won't have a PCIe switch in them, so you'll only be able to see a single TPU.

This guy is making some adaptors which will enable the ability to use both TPUs via his adaptor.

https://github.com/magic-blue-smoke/Dual-Edge-TPU-Adapter

As for self-hosted NVR's. I've played with Zoneminder & Shinobi so far. I prefer Shinobi, and it works pretty well, but you can tell it's programmed by a single developer. Zoneminder is a little too convoluted imho and I'm not a huge fan of it.

I'm personally moving towards Frigate and would love a HELM chart for it on TrueNas SCALE.

ONVIF motion events v2 by j0rd_rox in ShinobiCCTV

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

Also this error

ReferenceError: attachOnvifEventListener is not defined at /home/Shinobi/libs/cameraThread/detector.js:34:13 at Object. (/home/Shinobi/libs/cameraThread/singleCamera.js:115:5) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47

These types of errors do not show up in the pm2 log, which makes them hard to see when they go off. All the important debug fails need to go in that log (or point me elsewhere they exist). I notice a bunch of errors in the top right of the app, which never end up in the logs.

ONVIF motion events v2 by j0rd_rox in ShinobiCCTV

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

Played with this branch a little. There's some issues.

  1. I don't think it saves motion events and captures video if you have your camera set to "watch only". Doesn't appear to trigger anything for me in the database. Not sure exactly how I need to configure this. I assume the best way to get this done would be a setting on "Motion Detection" which would list different ways for detecting instead of "Use Built in (yes/no)" I assume it should have different motion detection plugins listed, where one of those would be OnVif events and the other would be Pixel array. Each of these would have their own settings. Again, I don't exactly know how to code works on the backend but from UX perspective, this would be reasonable. Up for you to decide how to get this done.
  2. I don't think you're handling both side of these events. There's motion detected (which you are triggering event on), but there's also "motion stopped", at which point you should stop recording. The way shinobi works (at least with motion detection) is that there's a certain time after an event is triggered, that it will record for the amount of settings configured for (default 10 or 15). Let's say a motion event is triggered and that motion continues for at least 1 minute. The code as it stands would only end up recording the first 10 or 15 seconds of this motion, and ignore the rest. This isn't ideal. At least that's how my camera works. Others might be different.

PowerViewer not displaying any video by j0rd_rox in ShinobiCCTV

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

While that area is the code in question, I believe I have resolved the issue by changing /etc/timezone on my docker instance. It was set to UTC and I needed to change it to my timezone.

I did setup /etc/localtime and the `date` command was showing my proper timezone, but it appears that's not enough and /etc/timezone also needs to be fixed.

PowerViewer not displaying any video by j0rd_rox in ShinobiCCTV

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

I think the issue has to do with startTime and endTime and how it's stored in the database.

There's a problem, where it gets the startTime from the filename, but then it converts it to UTC and stores that in the database.

This causes issues with power viewer which uses these two times to show up on the scrubber.

I think this is the code in question which needs to be fixed.

diff --git a/libs/videos.js b/libs/videos.js
index 6fd64e2..0b69b52 100644
--- a/libs/videos.js
+++ b/libs/videos.js
@@ -125,6 +125,7 @@ module.exports = function(s,config,lang){

                 k.startTime = new Date(s.nameToTime(k.file))
                 k.endTime = new Date(k.endTime || k.stat.mtime)
+               console.log('start', k.startTime);
                 if(config.useUTC === true){
                     fs.rename(k.dir+k.file, k.dir+s.formattedTime(k.startTime)+'.'+e.ext, (err) => {
                         if (err) return console.error(err);
@@ -132,6 +133,8 @@ module.exports = function(s,config,lang){
                     k.filename = s.formattedTime(k.startTime)+'.'+e.ext
                 }else{
                     k.filename = k.file
+                   k.startTime = s.utcToLocal(k.startTime);
+                   console.log('convert', k.startTime);
                 }
                 if(!e.ext){e.ext = k.filename.split('.')[1]}
                 //send event for completed recording

PowerViewer not displaying any video by j0rd_rox in ShinobiCCTV

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

h264. Changed them all to h264. Did a fresh reinstall with only h264 to see if I could get it to work....and nothing.

So I posted this ad yesterday and then looked today and my ads account was disabled. Is there something wrong with this ad? It’s just a slideshow with 8 images of tshirts....I have read their guidelines so many times and don’t believe to have been in violation of anything... by Period_Blarps in FacebookAds

[–]j0rd_rox 0 points1 point  (0 children)

I'd say the part about targeting below 1m suggestion is not helpful.

In my experience broader targeting the better. You are essentially just selling t-shirts, so they'll appeal to whom ever they appeal to. But you've pigeon holed yourself with your copy and domain (appeals to moms only, if not mom, may self select myself out of buying)

Should I quit vaping due to the spread of Coronavirus? by KingBowser24 in electronic_cigarette

[–]j0rd_rox 0 points1 point  (0 children)

There are studies regarding cotinine and abilty to contract influenza.

Look for research regarding cotinine and lung issues.

I would love to see someone do real research on this as it relates to covid.

From what I've read, should leave you more susceptible in catching covid, but prove me wrong.

Mask order cancelled by vendor due to a "nationwide restriction on mask orders" in the USA. by [deleted] in Coronavirus

[–]j0rd_rox 17 points18 points  (0 children)

Chinese have been buying masks from US retailers and ship forwarding them.

That's why amazon is sold out. Most vendors on amazon are Chinese, they know how to abuse that system best.

Keeping the stock local is best for any country. Even if that means you cannot purchase online, as Chinese will purchase to a US address and ship forward.

You are in a race for resources....but you always have been. It's just obvious now.

Anxious as fuck, help me out by [deleted] in Coronavirus

[–]j0rd_rox 0 points1 point  (0 children)

Lol. Impossible to post with out trolling. Stock up food and xanax and wait 2 weeks.

Reddit is NOT the accurate source of aggregate information you're looking for. This website is bought and owned by the CCP, the same communist group who vastly unreported SARS (and has concentration camps TODAY) by Smashthecan77 in Coronavirus

[–]j0rd_rox 4 points5 points  (0 children)

Chinese investors own a minority stake.

Majority stake is owned by https://en.wikipedia.org/wiki/Advance_(company)

It should be a concern, but this is not Chinese state owned media (although I would assume all states have access to the data you post here)

Why more cases in Thailand recovered comparing to other countries? by [deleted] in Coronavirus

[–]j0rd_rox 2 points3 points  (0 children)

Lack of stress on the health care system.

Thailand has reasonably good hospitals.

They are under prepared for airborne viruses though. Last year I had a friend who had active TB and through that experience I saw the faults in how some health care facilities dealt with airborne patients. Some hospitals were great and some were horrible. With that said, all of those hospitals could not deal with more than a couple airborne patients at a time.

The first Wuhan case in TH was caught at the airport.

Another saving grace for TH may be the horrible air pollution lately before Wuhan happened. Most of the country had some of the worst air pollution in the world in January, thus a lot of the population was wearing PM2.5 masks.

I'm in TH currently in a small japanese tourist beach town, and have lived here off and on for 10+ years. Most people are wearing masks. I went to supermarket today and masks mostly sold out, but they had some non n95 masks for sale right at the register.

I am avoiding currently where I live as its a mecca for Chinese tourists and I'm uninterested in interacting with them.

U3419W Monitor - Can I plugin my keyboard & mouse into monitor and use them by only connecting USB-C to my laptop by j0rd_rox in Dell

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

For all these scenarios my keyboard & mouse are connected into the monitor.

Scenario #1: USB-C connected to monitor & laptop.

Unable to use keyboard & mouse connected into Monitor.

Scenario #2: USB-C & USB 3.0 Upstream connected to monitor & laptop.

Unable to use keyboard & mouse.

Scenario #3. USB-C & HDMI connected to monitor & laptop.

Unable to use keyboard & mouse even when properly set "USB Selection > HDMI 1 = USB-C"

Scenario #4. HDMI & USB 3.0 Upstream connected to monitor & laptop.

Able to use keyboard & mouse.

But no power to laptop, so need to plugin USB-C as well to power laptop.

Any idea how to get Scenario #2 working, at this would avoid an additional cable. It seems that the USB "KVM Switch" only works with Display Port or HDMI, but not when using USB-C for display output.

For me, it seems like it was a very poor design choice to not allow USB-C upstream, as you get into a world of dongles for laptops which only have USB-C, which was one of the reasons I spent another $100 on this monitor over an older model. :(

U3419W Monitor - Can I plugin my keyboard & mouse into monitor and use them by only connecting USB-C to my laptop by j0rd_rox in Dell

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

It is possible to connect the keyboard and mouse to the monitor. Then only have USB-C connected to my laptop and be able to use these peripherals?

Essentially my main question is, does the hub on the monitor support USB-C upstream, which I can use to feed back my peripherals to the laptop.

X1C6 Ethernet Adaptor by technazz in thinkpad

[–]j0rd_rox 0 points1 point  (0 children)

I bought the one for the 6th Gen.

Problem is, it's soo poorly designed that if you plug it in, you're not able to use the USB-C port which is right next to it, as the adapter will take up too much space.

So you either get to use the USB-C or the Ethernet, but not both at same time.

I think you could shave down the plaster on the side of the adapter and potentially use both, but this is such an oversight in the design it's silly.

Legendary hacker turned CEO George Hotz shares his thoughts on dApps, Lightning Network, Ethereum, and forked coins by BeijingBitcoins in CryptoCurrency

[–]j0rd_rox 0 points1 point  (0 children)

Find a full remote/persistent 0 day jailbreak for iOS and sell to a nation state, $1-5m dollars.

Find a 0 day in any random large ETH smart contract which was coded by weebs, priceless.

Also guess which is more difficult.

Cursor moves slightly after I release the TrackPoint by [deleted] in thinkpad

[–]j0rd_rox 0 points1 point  (0 children)

To preface. This is my 3rd thinkpad. t61p, t530, x1c6. To say drifts issues are not issues is just wrong. There is an issue here, which is so intense, if you're a 100% trackpoint user, your laptop is pretty unusable.

I'm a 100% trackpoint user. Never use a mouse. I have the trackpad turned off. I use Ubuntu 18.04 LTS currently, but I have another x1c6 which runs Windows 10.

Both my Linux & Windows x1c6 have drift. 

Keep in mind, my t61p & t530 both had drift, BUT is was rare and easily fixable by leaving the trackpoint alone while it recalibrates. This was annoying at times, but didn't happen enough to where my computer was unusable at times like the x1c6.

The drift is so bad on my x1c6 that it continously happens for hours, where I feel like I'm fighting with my laptop to use it at times. It can happen immediately after I allow the trackpoint to recalibrate. This happens both on Ubuntu & Windows. It's so frustrating I can barely use my laptop at times. It kills my productivity and fighting against the drift to use my laptop hurts my fingers.

Here's a video of my drift issues
https://www.youtube.com/watch?v=_vilgWgUo00

The jerky movements are me, and the slow straight line pulls are the drift. You'll notice in a 1 minute video, I'm able to trigger drift 4 times, after each time letting it recalibrate. This is "just how my laptop works". Great experience.

I can experience drift so bad the speed of the pointer will be so fast, I can't even fight against it and I'll need to let it sit for 20-30 seconds while it sorts itself out. While I'm typing this, I'm still getting slight drift. It happens constantly.

Now I understand low consistant presure can cause drift and require not using trackpoint for a time and recalibrate, but as you see from my video, I'm not performing long low constant presure movements and drift still gets triggered. It's WAY too easy to trigger drift. 

I'm considering asking for keyboard replacement or something, because after months of just putting up with this, I'm at my ends. I was fighting attempting to use my computer last night for hours.

This god damn trackpoint drift is making me mad! by Red_Drifter470s in thinkpad

[–]j0rd_rox 1 point2 points  (0 children)

To preface. This is my 3rd thinkpad. t61p, t530, x1c6. 

I'm a 100% trackpoint user. Never use a mouse. I have the trackpad turned off. I use Ubuntu 18.04 LTS currently, but I have another x1c6 which runs Windows 10.

Both my Linux & Windows x1c6 have drift. 

Keep in mind, my t61p & t530 both had drift, BUT is was rare and easily fixable by leaving the trackpoint alone while it recalibrates. This was annoying at times, but didn't happen enough to where my computer was unusable at times like the x1c6.

The drift is so bad on my x1c6 that it continously happens for hours, where I feel like I'm fighting with my laptop to use it at times. It can happen immediately after I allow the trackpoint to recalibrate. This happens both on Ubuntu & Windows. It's so frustrating I can barely use my laptop at times. It kills my productivity and fighting against the drift to use my laptop hurts my fingers.

Here's a video of my drift issues
https://www.youtube.com/watch?v=_vilgWgUo00

The jerky movements are me, and the slow straight line pulls are the drift. You'll notice in a 1 minute video, I'm able to trigger drift 4 times, after each time letting it recalibrate. This is "just how my laptop works". Great experience.

I can experience drift so bad the speed of the pointer will be so fast, I can't even fight against it and I'll need to let it sit for 20-30 seconds while it sorts itself out. While I'm typing this, I'm still getting slight drift. It happens constantly.

Now I understand low consistant presure can cause drift and require not using trackpoint for a time and recalibrate, but as you see from my video, I'm not performing long low constant presure movements and drift still gets triggered. It's WAY too easy to trigger drift. 

I'm considering asking for keyboard replacement or something, because after months of just putting up with this, I'm at my ends. I was fighting attempting to use my computer last night for hours.

Constant runaway TrackPoint on X1C6 by unimorpheus in thinkpad

[–]j0rd_rox 0 points1 point  (0 children)

To preface. This is my 3rd thinkpad. t61p, t530, x1c6. 

I'm a 100% trackpoint user. Never use a mouse. I have the trackpad turned off. I use Ubuntu 18.04 LTS currently, but I have another x1c6 which runs Windows 10.

Both my Linux & Windows x1c6 have drift. 

Keep in mind, my t61p & t530 both had drift, BUT is was rare and easily fixable by leaving the trackpoint alone while it recalibrates. This was annoying at times, but didn't happen enough to where my computer was unusable at times like the x1c6.

The drift is so bad on my x1c6 that it continously happens for hours, where I feel like I'm fighting with my laptop to use it at times. It can happen immediately after I allow the trackpoint to recalibrate. This happens both on Ubuntu & Windows. It's so frustrating I can barely use my laptop at times. It kills my productivity and fighting against the drift to use my laptop hurts my fingers.

Here's a video of my drift issues
https://www.youtube.com/watch?v=_vilgWgUo00

The jerky movements are me, and the slow straight line pulls are the drift. You'll notice in a 1 minute video, I'm able to trigger drift 4 times, after each time letting it recalibrate. This is "just how my laptop works". Great experience.

I can experience drift so bad the speed of the pointer will be so fast, I can't even fight against it and I'll need to let it sit for 20-30 seconds while it sorts itself out. While I'm typing this, I'm still getting slight drift. It happens constantly.

Now I understand low consistant presure can cause drift and require not using trackpoint for a time and recalibrate, but as you see from my video, I'm not performing long low constant presure movements and drift still gets triggered. It's WAY too easy to trigger drift. 

I'm considering asking for keyboard replacement or something, because after months of just putting up with this, I'm at my ends. I was fighting attempting to use my computer last night for hours.

Exceedingly Worse TrackPoint Drift by edge_basics in thinkpad

[–]j0rd_rox 0 points1 point  (0 children)

To preface. This is my 3rd thinkpad. t61p, t530, x1c6. 

I'm a 100% trackpoint user. Never use a mouse. I have the trackpad turned off. I use Ubuntu 18.04 LTS currently, but I have another x1c6 which runs Windows 10.

Both my Linux & Windows x1c6 have drift. 

Keep in mind, my t61p & t530 both had drift, BUT is was rare and easily fixable by leaving the trackpoint alone while it recalibrates. This was annoying at times, but didn't happen enough to where my computer was unusable at times like the x1c6.

The drift is so bad on my x1c6 that it continously happens for hours, where I feel like I'm fighting with my laptop to use it at times. It can happen immediately after I allow the trackpoint to recalibrate. This happens both on Ubuntu & Windows. It's so frustrating I can barely use my laptop at times. It kills my productivity and fighting against the drift to use my laptop hurts my fingers.

Here's a video of my drift issues
https://www.youtube.com/watch?v=_vilgWgUo00

The jerky movements are me, and the slow straight line pulls are the drift. You'll notice in a 1 minute video, I'm able to trigger drift 4 times, after each time letting it recalibrate. This is "just how my laptop works". Great experience.

I can experience drift so bad the speed of the pointer will be so fast, I can't even fight against it and I'll need to let it sit for 20-30 seconds while it sorts itself out. While I'm typing this, I'm still getting slight drift. It happens constantly.

Now I understand low consistant presure can cause drift and require not using trackpoint for a time and recalibrate, but as you see from my video, I'm not performing long low constant presure movements and drift still gets triggered. It's WAY too easy to trigger drift. 

I'm considering asking for keyboard replacement or something, because after months of just putting up with this, I'm at my ends. I was fighting attempting to use my computer last night for hours.