If your pulley or gear or... has a - at least one - screw to fasten on the axle and has the same diameter, you are just fine. Mount it with the screw perpendicular to the flat surface on the axle.
If the pulley or gear or... is just pressed over the axle, use some two-component raisin glue and glue it onto the axle - hot glue may not good enough. Better is when you file a notch in the center bore of it, place that notch over the flattened area of the axle and wedge / slide / press a nail or thick solid wire - called key - in and add some hod glue that oozes out on both ends to prevent slipping out of the key.
Since this all very low speed, it does not matter when it is not 100% centered...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
If your pulley or gear or... has a - at least one - screw to fasten on the axle and has the same diameter, you are just fine. Mount it with the screw perpendicular to the flat surface on the axle.
If the pulley or gear or... is just pressed over the axle, use some two-component raisin glue and glue it onto the axle - hot glue may not good enough. Better is when you file a notch in the center bore of it, place that notch over the flattened area of the axle and wedge / slide / press a nail or thick solid wire - called key - in and add some hod glue that oozes out on both ends to prevent slipping out of the key.
Since this all very low speed, it does not matter when it is not 100% centered...