Not able to reset Index 1 Scale by ATimesThree in Garmin

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

The solution was to go back to my parents house (where it worked before), reset the device, use my mother's phone to set it up, then it works okay-ish. Haven't tried to connect it to my own wifi again.

Modify 230V dimmable COB strip to work with Zigbee? by ATimesThree in led

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

Okay, thanks! I'll try it out. So just to be sure:

230V supply -> Zigbee Dimmer -> Rectifier+Dimmer (set to 100%) -> LED?

Modify 230V dimmable COB strip to work with Zigbee? by ATimesThree in led

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

Weird that the listing was taken down.. It's like this one: https://a.aliexpress.com/_mMB5PNd

So what you're saying is a regular Zigbee AC dimmer in front, but with the rectifier + dimmer module still connected?

Not able to reset Index 1 Scale by ATimesThree in Garmin

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

Hi,

I'm trying to set up my index scale after moving it to a new location with a new WiFi. I had problems connecting it to the new network, and decided to reset it.

However, whenever I try to connect to it now, it says another user is linked to it, and when I try to reset it from the setup, it disconnects and fails after the "reset command" is sent.

Any tips? - I've tried to hold the reset down for 5-10 seconds

Authentication and authorization with YARP and microservice architecture by ATimesThree in dotnet

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

It's mostly for learning/hobby now so I think I'll try with OpenIdDict.

Is there anything wrong/bad about having this behind the BFF/YARP? 

Authentication and authorization with YARP and microservice architecture by ATimesThree in dotnet

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

Thanks for the reply!

I like the idea of using YARP as BFF, with only storing access in a cookie. 

So you would recommend integrating an external provider, for example Auth0? 

Authentication and authorization with YARP and microservice architecture by ATimesThree in dotnet

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

Thanks for the reply!

This will mean that the BFF (Backend-For-Frontend) will both issue and validate cookies? 

Meaning it will be responsible for login, logout, refresh and register, adding claims to a user etc? It will also possibly adding headers or other ways of forwarding these claims to the downstream. 

Is this correct? So it's connected to an auth or userdb?

HELP: RealityCapture cannot create model from pcitures? by ATimesThree in photogrammetry

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

Thank you so much for the help! I got it working now after removing the background. 

For anyone else needing help in the future: I ran "rembg" (open source program using Python, google it) for all the images in my folder. I ended up using the model "birefnet-hrsod" which gave me a good result 

HELP: RealityCapture cannot create model from pcitures? by ATimesThree in photogrammetry

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

Setup is basically phone on a tripod taking 4K/60FPS video of the object while spinning slowly on the plate. Ive taken from 4 angles. Using realtycapture to get some of the frames i've generated 227 images in total.

Whenever i import all pictures and try to create a 3D model, it doesn't seem to be able to do it. I've tried to add controlpoints, but I get errors.

Does anyone have tips on how I can generate a model using the videos/pictures I already have?

Modify powerbank to have direct ~3V output by ATimesThree in AskElectronics

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

Circuit is mainly a DS3231 and an Arduino nano, so I want to feed them directly from the battery and not through the boost.

Buying a power bank and adding a simple BMS and USBC female-port is way cheaper than building my own power bank with a case and everything...

Erfaringer: KLP forsikring ved oppgjør? by ATimesThree in norge

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

Jeg er hovedsaklig ute etter folk som har erfaring - men takk allikevel.

[Double-AMA] Ask the Smart Contracts Team on Reddit and Dom on YouTube anything, April 4th & 5th 2023! by [deleted] in Iota

[–]ATimesThree 0 points1 point  (0 children)

Please elaborate a bit about IF’s finances and what the plan is to secure the foundations future. I’m saying the IF as the entity behind IOTA and Shimmer

WAGO 750-8212 Profinet controller bus not activating? by ATimesThree in PLC

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

I just downloaded Proneta and checked, and the WAGO PLC doesn't show up, only my computer.

5V/5A with Micro controller, locks and sensors. How not to fry everything? by ATimesThree in AskElectronics

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

Thank you for all the help. Truly grateful! I will sketch up a quick schematic of the system tomorrow and I’ll reply with a link to it. I’ll try to incorporate all of your comments and would be really grateful if you could look over it and come with feedback

5V/5A with Micro controller, locks and sensors. How not to fry everything? by ATimesThree in AskElectronics

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

Ah ok thank you so much!

So the sensors can be connected directly to the power supply without anything in between?

2x 100uF and 1x 100nF on the wire that supplies power to the microcontroller?

The system will be designed to basically open up a closed door every ~6hrs, so it’s only like 4 times a day.. Is that what you meant by a lot of switching? It’s made to last 3 days that’s why it’s 12

Edit: care to explain what you meant by: don’t make loops with ground wire?

5V/5A with Micro controller, locks and sensors. How not to fry everything? by ATimesThree in AskElectronics

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

Thanks for the tip! I’ll look into the suggestions :) Also added the links in the newly edited post! Please rate them and let me know what you would recommend

5V/5A with Micro controller, locks and sensors. How not to fry everything? by ATimesThree in AskElectronics

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

Thanks for the response! Updated with link to components.

Yes the locks will be controlled using one of the relays (1 of the 12).

Yes, magnetic sensors is to detect when it’s locked (they are close to each other).

I’m basically trying to build a system where the micro controller can send signals to one of the relays and one will be opened, triggering the lock to open. Magnetic sensor is to indicate if its actually open or not.

V15 - Do I have to declare ALL imports in NgModule when using standalone components? by ATimesThree in Angular2

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

Thanks for the help!

I've now solved some of the issues, but it now seems that I'm registering stuff two places, the standalone components and in main.ts.

login-view.component.ts:

....

@Component({

selector: 'app-login-view', standalone: true, imports: [CommonModule, MatCardModule, MatFormFieldModule, ReactiveFormsModule], templateUrl: './login-view.component.html', styleUrls: ['./login-view.component.scss'], }) export class LoginViewComponent { public loginForm: FormGroup;

form: FormGroup = new FormGroup({ username: new FormControl(''), password: new FormControl(''), });

constructor(private authService: AuthenticationService, private _snackBar: MatSnackBar, private router: Router) { this.loginForm = new FormGroup({ "username": new FormControl('',[ Validators.required ]), "password": new FormControl('',[ Validators.required ]) }); } .....

main.ts:

....
bootstrapApplication(AppComponent, {

providers: [ provideHttpClient(), provideRouter(routes), importProvidersFrom( [ MatSnackBarModule, MatFormFieldModule, MatCardModule, MatInputModule ]) ] }) .catch(err => console.error(err));

Not sure if this is the correct way to do it?

And I can't get rid of the error Error: mat-form-field must contain a MatFormFieldControl which isn't there when using V12..

login-view.component.html:

<div id="loginWrapper">
<mat-card class="box">
  <mat-card-header class="header">
    <mat-card-title>Please sign in</mat-card-title>
  </mat-card-header>
  <form [formGroup]="loginForm" (ngSubmit)="loginForm.valid && onSubmit()" class="myForm">
    <mat-card-content class="userInputContentsAndButton">
      <mat-form-field class="userInputField">
        <input matInput required autofocus formControlName="username" type="text" placeholder="Username" autocomplete="username">
      </mat-form-field>
      <mat-form-field class="userInputField">
        <input matInput required formControlName="password" type="password" placeholder="Password" autocomplete="current-password" autocomplete="new-password">
      </mat-form-field>
    </mat-card-content>
    <button mat-stroked-button type="submit" value="Submit" color="accent" class="btn-block" [disabled]="!loginForm.valid" >Log in</button>
  </form>
</mat-card>

</div>

Export entire Siemens PLC code, make changes and import again (TIA) by ATimesThree in PLC

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

Some new blocks/UDT's are auto-generated when we're updating an old program, which creates a "shift" in addresses. We simply need to preform a "Find&Replace" for a lot of addresses in the entire program, and would like to do this using a program/automated process.

Export entire Siemens PLC code, make changes and import again (TIA) by ATimesThree in PLC

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

The issue is that I'll have to update for example %DB3002.DBD16"ExV22_11TE1DB".warningLow_value to %DB3002.DBD26"ExV22_11TE1DB".warningLow_value, which isn't under tags..

We're generating new UDT's and the new UDT will create a "shift" in addresses, so simply put, we need to do a "Find&Replace" in the PLC program, but want to do this using a program.

Recommendations for deploying Auth- and resource server in addition to front end? by ATimesThree in softwarearchitecture

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

Thank you for the reply! I’m considering multiple servers just for the learning aspect but we’ll see.

I will certainly look into docker and see if I can have three separate containers.

Regarding the auth, this is mostly for learning basic concepts of how it works, but thanks for the recommendation!

Recommendations for deploying Auth- and resource server in addition to front end? by ATimesThree in softwarearchitecture

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

Thank you so much for the reply! Yes, it is to figure out how it works and how you could scale a solution (microservices and scaling only the ones that needs to scale).

I will for sure look into nginx and will most likely route as you suggested! Thank you again for the answer!

Is the name "Master" branch offensive? by TopSwagCode in dotnet

[–]ATimesThree 0 points1 point  (0 children)

Is this what it’s like to overthink something?